#include <iostream>
#include <string>
using namespace std;

string returnPowerString(int target) {
    // 拆分为仅有2(2)，2，2(0)的字符串
    string result = "";
    int counter = 0;
    while (target != 0) {
        // 分治思想，不是0,1,2数位上的数向下拆分
        if (target & 1) {
            if (counter == 0) { result = "2(0)+" + result; }
            else if (counter == 1) { result = "2+" + result; }
            else if (counter == 2) { result = "2(2)+" + result; }
            else { result = "2(" + returnPowerString(counter) + ")+" + result; }
        }
        target >>= 1;
        counter++;
    }
    return result.substr(0, result.size() - 1);
}

int main() {
    int target;
    cin >> target;
    string result = returnPowerString(target);
    cout << result;
    return 0;
}